package com.suoluo.zenadmin.vo.hotel;

import java.util.ArrayList;
import java.util.List;

public class AroundCategoryVO implements Comparable<AroundCategoryVO>{

	
	private int categoryId;
	private String categoryName;
	
	private int categoryOrder;
	
	private String categoryColor;
	private List<AroundNodeVO> nodeList;
	
	private int hotelId;
	private int destId;
	
	public void addAroundNodeVO(AroundNodeVO nodeVO){
		if (nodeList == null){
			nodeList = new ArrayList<AroundNodeVO>();
		}
		nodeList.add(nodeVO);
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public int getCategoryOrder() {
		return categoryOrder;
	}

	public void setCategoryOrder(int categoryOrder) {
		this.categoryOrder = categoryOrder;
	}

	public List<AroundNodeVO> getNodeList() {
		return nodeList;
	}

	public void setNodeList(List<AroundNodeVO> nodeList) {
		this.nodeList = nodeList;
	}

	public int getHotelId() {
		return hotelId;
	}

	public void setHotelId(int hotelId) {
		this.hotelId = hotelId;
	}

	public int getDestId() {
		return destId;
	}

	public void setDestId(int destId) {
		this.destId = destId;
	}

	public String getCategoryColor() {
		return categoryColor;
	}

	public void setCategoryColor(String categoryColor) {
		this.categoryColor = categoryColor;
	}

	@Override
	public int compareTo(AroundCategoryVO o) {
		return this.categoryOrder - o.categoryOrder;
	}
	
	
}
